package cn.pomelo.signal.mapper;

import cn.pomelo.signal.model.Trade;
import cn.pomelo.signal.model.TradeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface TradeMapper {
    int insert(Trade record);

    int insertSelective(Trade record);

    int batchInsert(List<Trade> list);

    List<Trade> selectAll();

    List<Trade> selectAllByDateAndCode(String d1, String d2, String code);

    List<Trade> selectAllTrades();

    void loadCSV(String dir);

    Date maxDate();

    List<TradeVo> getRiseTrade(String d1, String d2, String d3);
}